package org.jeecg.modules.demo.pointcount.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.pointcount.entity.OnlineData;
import org.jeecg.modules.demo.pointcount.mapper.OnlineDataMapper;
import org.jeecg.modules.demo.pointcount.service.IOnlineDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author yw
 * @Date 2021/3/8 16:13
 */
@Service
public class OnlineDataServiceImpl extends ServiceImpl<OnlineDataMapper, OnlineData> implements IOnlineDataService {
    @Autowired
    private OnlineDataMapper onlineDataMapper;

    @Override
    public void insertOnlineData(OnlineData onlineData) {
        onlineDataMapper.insertOnlineData(onlineData);
    }

    @Override
    public String isActive(OnlineData onlineData) {
        return onlineDataMapper.isActive(onlineData);
    }

    @Override
    public int updateOnlineData(OnlineData onlineData) {
        return onlineDataMapper.updateOnlineData(onlineData);
    }

    @Override
    public void insertOnlineDataCount(OnlineData onlineReturnData) {
        onlineDataMapper.insertOnlineDataCount(onlineReturnData);
    }
}
